'''
Created on Jul 14, 2012

@author: nzhao
'''

import numpy as np

X=np.array([[0.0,  1.0],[1.0,  0.0]])
Y=np.array([[0.0, -1.j],[1.j,  0.0]])
Z=np.array([[1.0,  0.0],[0.0, -1.0]])

SPIN1X = np.array([ [0.0,  1.0, 0.0], [1.0, 0.0,  1.0], [0.0, 1.0,  0.0] ]) / np.sqrt(2.0)
SPIN1Y = np.array([ [0.0, -1.j, 0.0], [1.j, 0.0, -1.j], [0.0, 1.j,  0.0] ]) / np.sqrt(2.0) 
SPIN1Z = np.array([ [1.0,  0.0, 0.0], [0.0, 0.0,  0.0], [0.0, 0.0, -1.0] ])